(use-package eww
  :bind
  (:map eww-mode-map
	("&" . nil)
	("& &" . eww-browse-with-external-browser)
	("C-j" . eww-copy-page-url)
	("r" . eww-forward-url))
  :custom-face
  (eww-form-checkbox ((t (:inherit (link)))))
  (eww-form-text ((t (:inherit widget-field :underline t))))
  ;; (eww-form-file
  ;;  ((t (:box (:line-width 2 :color nil :style released-button)
  ;;	     :foreground "black" :background "lightgray"))))
  ;; (eww-form-select
  ;;  ((t (:foreground "black" :background "lightgrey"))))
  ;; (eww-form-submit
  ;;  ((t (:box (:line-width 2 :color nil :style released-button)
  ;;	     :foreground "black" :background "lightgray"))))
  ;; (eww-form-text
  ;;  ((t  (:underline (:color foreground-color :style line) :background "lightgray"))))
  ;; (eww-form-textarea
  ;;  ((t (:underline (:color foreground-color :style line) :background "lightgray"))))
  :custom
  (browse-url-secondary-browser-function 'qrthi/browse-url-graphical-browser)
  (shr-max-image-proportion 0.3)
  (shr-use-fonts nil)			;keep nil for monospace
  (shr-image-animate nil)
  (shr-blocked-images "\\(github.githubassets\\.com\\/images\\/.+\\|masteringemacs\\.org\\)"))
;; (eww-download-directory qrthi/directory-downloads)
